package com.xxchat.entity.constants;

import com.xxchat.entity.enums.UserContactTypeEnum;

public class SysConstants {
    public static final String SYSTEM_NAME = "xxchat";
    public static final String ROBOT_UID = UserContactTypeEnum.USER.getPrefix() + "robot";
    public static final String ROBOT_NICKNAME = "Waicc";
    public static final String ROBOT_WELCOME = "欢迎使用xxChat";
    public static final String APPLY_INFO_TEMPLATE = "我是%s";

    public static final String FILE_FOLDER_PATH_FILE = "/file";
    public static final String FILE_FOLDER_PATH_VERSION = "/version/";
    public static final String FILE_FOLDER_PATH_AVATAR = "/avatar/";

    public static final String VERSION_EXE_SUFFIX = ".exe";
    public static final String IMAGE_SUFFIX = ".png";
    public static final String IMAGE_COVER_SUFFIX = "_cover.png";

    public static final String[] IMAGE_SUFFIX_LIST = {".jpeg", ".jpg", ".png", ".gif", ".bmp", "webp"};
    public static final String[] VIDEO_SUFFIX_LIST = {".mp4", ".avi", ".rmvb", ".mkv", ".mov"};

    public static final String REGEX_VERSION = "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$";
    public static final String MESSAGE_VERSION = "版本号不符合规范";

    public static final Long MILLIS_SECONDS_3DAYS_AGO = 3 * 24 * 60 * 60 * 1000L;

    public static final Long FILE_SIZE_MB = 1024L * 1024L;
}
